package com.sun.androidexerciseproject.function.file;

import java.io.File;

/**
 * Description:
 * File: FileManagerUtil.java
 * Author: Administrator
 * Create: 2019/3/15 0015 上午 11:04
 */
public class FileManagerUtil {
    public static void deleteFilesByDir(File dir) {
        if (null != dir && dir.exists() && dir.isDirectory()) {
            for (File item : dir.listFiles()) {
                item.delete();
            }
        }
    }
}
